package com.aistar.service.impl;

import com.aistar.mapper.ClubActivityMapper;
import com.aistar.pojo.ClubActivity;
import com.aistar.service.ActivityReleaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ActivityReleaseServiceImpl implements ActivityReleaseService {
    @Autowired
    private ClubActivityMapper clubActivityMapper;
    @Override
    public int saveActivity(ClubActivity clubActivity) {
       return clubActivityMapper.insert(clubActivity);
    }

    @Override
    public ClubActivity getById(int id) {
        return clubActivityMapper.selectByPrimaryKey(null);
    }
}
